package com.qf.contract.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 公告信息表
 */
@ApiModel(description = "公告信息表")
@Data
@TableName(value = "f_announcement_management")
public class FAnnouncementManagement {
    public static final String COL_ANNOUNCEMENT_ID = "announcement_id";
    public static final String COL_ANNOUNCEMENT_TYPE_OF_CONTRACT = "announcement_type_of_contract";
    public static final String COL_ANNOUNCEMENT_TITLE = "announcement_title";
    public static final String COL_ANNOUNCEMENT_SUMMARY = "announcement_summary";
    public static final String COL_ANNOUNCEMENT_LABEL = "announcement_label";
    public static final String COL_ANNOUNCEMENT_PRIORITY = "announcement_priority";
    public static final String COL_ANNOUNCEMENT_STAR_DATE = "announcement_star_date";
    public static final String COL_ANNOUNCEMENT_PUBLISHER = "announcement_publisher";
    public static final String COL_ANNOUNCEMENT_TEXT = "announcement_text";
    public static final String COL_ANNOUNCEMENT_CONTRACT = "announcement_contract";
    public static final String COL_ANNOUNCEMENT_STATUS = "announcement_status";
    public static final String COL_ANNOUNCEMENT_DELETED_STATE = "announcement_deleted_state";
    /**
     * 公告id主键
     */
    @TableId(value = "announcement_id", type = IdType.INPUT)
    @ApiModelProperty(value = "公告id主键")
    private Integer announcementId;
    /**
     * 公告类型外键type_of_contract
     */
    @TableField(value = "announcement_type_of_contract")
    @ApiModelProperty(value = "公告类型外键type_of_contract")
    private Integer announcementTypeOfContract;
    /**
     * 公告标题
     */
    @TableField(value = "announcement_title")
    @ApiModelProperty(value = "公告标题")
    private String announcementTitle;
    /**
     * 公告载要
     */
    @TableField(value = "announcement_summary")
    @ApiModelProperty(value = "公告载要")
    private String announcementSummary;
    /**
     * 公告标签，外键
     */
    @TableField(value = "announcement_label")
    @ApiModelProperty(value = "公告标签，外键")
    private Integer announcementLabel;
    /**
     * 公告优先级,默认5
     */
    @TableField(value = "announcement_priority")
    @ApiModelProperty(value = "公告优先级,默认5")
    private Integer announcementPriority;
    /**
     * 公告发布日期
     */
    @TableField(value = "announcement_star_date")
    @ApiModelProperty(value = "公告发布日期")
    private Date announcementStarDate;
    /**
     * 员工表外键
     */
    @TableField(value = "announcement_publisher")
    @ApiModelProperty(value = "员工表外键")
    private Integer announcementPublisher;
    /**
     * 正文
     */
    @TableField(value = "announcement_text")
    @ApiModelProperty(value = "正文")
    private String announcementText;
    /**
     * 附件
     */
    @TableField(value = "announcement_contract")
    @ApiModelProperty(value = "附件")
    private String announcementContract;
    /**
     * 公告状态0启用1禁用
     */
    @TableField(value = "announcement_status")
    @ApiModelProperty(value = "公告状态0启用1禁用")
    private Integer announcementStatus;
    /**
     * 删除状态，0正常1删除
     */
    @TableLogic(value = "0", delval = "1")
    @TableField(value = "announcement_deleted_state")
    @ApiModelProperty(value = "删除状态，0正常1删除")
    private Integer announcementDeletedState;
}